﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WebForms/Site.Master" AutoEventWireup="true" CodeBehind="AddStaff.aspx.cs" Inherits="DelonixRegiaHMSys.UI.WebForms.AddStaff" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="wrapper">
        <div id="content">
            <table class="auto-style4">
                <tr>
                    <td class="auto-style5">Staff ID:</td>
                    <td>
                        <asp:Label ID="StaffID" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>Staff Images:</td>
                    <td>
                        <asp:FileUpload ID="StaffImageUp" runat="server" />
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="StaffImageUp" Display="Dynamic" ErrorMessage="Please upload the Staff Image!" Font-Bold="True" ForeColor="Red"></asp:RequiredFieldValidator>
                        <asp:HiddenField ID="h1" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td class="auto-style5">Last Name of Staff:</td>
                    <td>
                        <asp:TextBox ID="LastName" runat="server" MaxLength="20"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="FirstName" Display="Dynamic" ErrorMessage="Please enter the Staff First Name!" Font-Bold="True" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style5">First Name of Staff:</td>
                    <td>
                        <asp:TextBox ID="FirstName" runat="server" MaxLength="20"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="LastName" Display="Dynamic" ErrorMessage="Please enter the Staff Last Name!" Font-Bold="True" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style5">Date of Birth:</td>
                    <td>
                        <asp:TextBox ID="DOBtbx" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="DOBtbx" Display="Dynamic" ErrorMessage="Please enter the Staff Date Of Birth!" Font-Bold="True" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style5">Bank Account Number:</td>
                    <td>
                        <asp:TextBox ID="BankAcc" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="BankAcc" Display="Dynamic" ErrorMessage="Please enter the Staff Bank Account Number!" Font-Bold="True" ForeColor="Red"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="DOBtbx" Display="Dynamic" ErrorMessage="Please enter the date in this format [YYYY-MM-DD]" Font-Bold="True" ForeColor="Red" ValidationExpression="^[0-9]{4}-(((0[13578]|(10|12))-(0[1-9]|[1-2][0-9]|3[0-1]))|(02-(0[1-9]|[1-2][0-9]))|((0[469]|11)-(0[1-9]|[1-2][0-9]|30)))$"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style5">Home Address:</td>
                    <td>
                        <asp:TextBox ID="Add" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="Add" Display="Dynamic" ErrorMessage="Please enter the Staff Home Address!" Font-Bold="True" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style5">Phone Number:</td>
                    <td>
                        <asp:TextBox ID="PhoneNo" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="PhoneNo" Display="Dynamic" ErrorMessage="Please enter the Staff Phone Number" Font-Bold="True" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style5">Duties Type:</td>
                    <td>
                        <asp:DropDownList ID="Duties" runat="server">
                            <asp:ListItem>Front Desk Staff</asp:ListItem>
                            <asp:ListItem>Management Staff</asp:ListItem>
                            <asp:ListItem>IT Administrator</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
            </table>
            <br />
            <br />
        </div>
    <div id="left">
        <h3>This is the Add System Staff Section.</h3>
        <p class="auto-style7">Please Fill in all the Staff Particulars and click Add.</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>
            &nbsp;<asp:Button ID="Addbtn" runat="server" Height="35px" Text="Add" Width="89px" OnClick="Addbtn_Click" />
        </p>
    </div>
    <div class="clear"></div>



    </div>
</asp:Content>
